from prettytable import PrettyTable

tb = PrettyTable()
tb.field_names = ["City name", "Area", "Population", "Annual Rainfall"]

from colorama import Fore, Back, Style, init

init(autoreset=True)

tb.add_row([Fore.RED + "some red text" + Fore.RESET, 1295, 1158259, 600.5])
tb.add_row([Fore.GREEN + "Brisbane" + Fore.RESET, 5905, 1857594, 1146.4])
tb.add_row([Fore.LIGHTCYAN_EX + "Darwin" + Fore.RESET, 112, 120900, 1714.7])
tb.add_row([Fore.LIGHTGREEN_EX + "Hobart" + Fore.RESET, 1357, 205556, 619.5])
tb.add_row([Fore.LIGHTYELLOW_EX + "some red text" + Fore.RESET, 1295, 1158259, 600.5])
tb.add_row([Fore.LIGHTBLUE_EX + "Darwin" + Fore.RESET, 112, 120900, 1714.7])
tb.add_row([Fore.GREEN + "Hobart" + Fore.RESET, 1357, 205556, 619.5])
print(tb)
# tb.add_column('index', [1, 2, 3, 4])
# print(tb)
